#include "dispenser.h"
#include "dispenser_dragonball.h"


namespace igslib
{
    IDispenserManager* CDispenserManager::instance = 0;
    IDispenserManager* CDispenserManager::GetInstance() 
    {
        if ( instance == 0 )
        {
            instance = new CDispenserManager();
        }
        return instance ;
    }
    IHopper* CDispenserManager::New_ProjMCU(const std::string& name)
    {	
        IHopper* rtn = nullptr;	
        if(name == "DragonBallRace")
        {	
            rtn = new dispenser_Grgn(); 
            cpns.insert(rtn);
        }	
        return rtn;
    }
}

extern "C"
{
    igslib::IDispenserManager* GetDispenserManagerInstance()
    {
        return igslib::CDispenserManager::GetInstance();
    }
}
